package everyday.luogu;

import java.util.Scanner;

/**
 * @Author: wenjingyuan
 * @Date: 2022/11/26/15:34
 * @Description:
 */
public class Num11 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        long  a=scanner.nextLong();
        long b=scanner.nextLong();
        if(fun(a,b)){
            if(b>0){
                System.out.println(1*Math.abs(a));
            }
            if(b<0){
                System.out.println(-1*Math.abs(a));
            }
        }
    }

    private static boolean fun(long a,long b) {
        if(b<0){
           return true;
        }
        if(b>0){
            return true;
        }
        return false;
    }
}
